package unimelb.discussiontracker.twitter.data.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import unimelb.discussiontracker.twitter.data.dao.IHashTagDao;
import unimelb.discussiontracker.twitter.data.entity.HashTagEntity;

@Repository
public class HashTagDao extends GenericDataAccessObject<HashTagEntity> implements IHashTagDao {

    @Override
    public HashTagEntity findByValue(String value) {
        final Map<String, Object> queryParams = new HashMap<String, Object>();
        queryParams.put("value", value);
        return this.runSingleResultNamedQuery("HashTag.FindByValue", queryParams, null);
    }

}
